﻿@using NewLife.Common
@{
    var set = NewLife.Cube.Setting.Current;
}
@using (Html.BeginForm("Login", "User", new { r = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "layui-form", @id = "forms" }))
{
    @Html.ValidationSummary()
    <h1> 用户登录</h1>
    if (set.AllowLogin)
    {
        <div class="cell"><span class="icon-user"></span><input type="text" name="username" id="username" lay-verify="required" lay-verType="tips" placeholder="登录账号" autocomplete="off"></div>
        <div class="cell"><span class="icon-pwd"></span><input type="password" name="password" id="password" lay-verify="required" lay-verType="tips" placeholder="登录密码" autocomplete="off"></div>
        @*<div class="wjpwd"><a href="" target="_blank">忘记密码？</a></div>*@        
        <div class="login-btn">
            <button type="submit" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="loginsub">登录</button>
            <button type="button" class="layui-btn layui-btn-danger">重置</button>
        </div>
    }
}
